﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;

namespace TomNet.IMSC.Model.DbModels.Account
{
    /// <summary>
    /// 出款单记录表
    /// </summary>
    public class OutMoneyOrdersRunnings : EntityBase<int>
    {
        /// <summary>
        /// 出款单ID
        /// </summary>
        public int OutMoneyOrdersID { get; set; }
        /// <summary>
        /// 佣金流水ID
        /// </summary>
        public int BrokerageRunningsID { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [StringLength(255)]
        public string AccountBank { get; set; }
        /// <summary>
        /// 开户名
        /// </summary>
        [StringLength(50)]
        public string AccountName { get; set; }
        /// <summary>
        /// 开户帐号
        /// </summary>
        [StringLength(50)]
        public string AccountNumber { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Amount { get; set; }
        /// <summary>
        /// 添加操作员
        /// </summary>
        public int CreateStaffID { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 财务审核人
        /// </summary>
        public int FinanceStaffID { get; set; }
        /// <summary>
        /// 财务审核时间
        /// </summary>
        public DateTime FinanceTime { get; set; }
        /// <summary>
        /// 财务审核状态 0待审核   1审核通过    2审核未通过
        /// </summary>
        public int FinanceState { get; set; }
        /// <summary>
        /// 财务审核说明
        /// </summary>
        public string FinanceRemark { get; set; }
        /// <summary>
        /// 渠道审核人
        /// </summary>
        public int OriginStaffID { get; set; }
        /// <summary>
        /// 渠道审核时间
        /// </summary>
        public DateTime OriginTime { get; set; }
        /// <summary>
        /// 渠道审核状态   0待审核   1审核通过    2审核未通过
        /// </summary>
        public int OriginState { get; set; }
        /// <summary>
        /// 渠道审核说明
        /// </summary>
        public string OriginRemark { get; set; }
        /// <summary>
        /// 管理审核人
        /// </summary>
        public int SysStaffID { get; set; }
        /// <summary>
        /// 管理审核时间
        /// </summary>
        public DateTime SysTime { get; set; }
        /// <summary>
        /// 管理审核状态   0待审核   1审核通过    2审核未通过
        /// </summary>
        public int SysState { get; set; }
        /// <summary>
        /// 管理审核说明
        /// </summary>
        public string SysRemark { get; set; }
        /// <summary>
        /// 出款人
        /// </summary>
        public int OutMoneyStaffID { get; set; }
        /// <summary>
        /// 出款时间
        /// </summary>
        public DateTime OutMoneyTime { get; set; }
        /// <summary>
        /// 出款状态  0待出款   1已出款    2出款异常
        /// </summary>
        public int OutMoneyState { get; set; }
        /// <summary>
        /// 出款说明
        /// </summary>
        public string OutMoneyRemark { get; set; }
        /// <summary>
        /// 出款帐户
        /// </summary>
        public int OutMoneyAccountID { get; set; }
    }
}
